import { ui } from "../ui/layaMaxUI";
import wxutils from "../utils/wxutils";
import sceneutil from "../utils/sceneutil";

export default class bartest extends ui.bartestUI {
    constructor() {
        super();
    }

    onEnable() {
        Laya.stage.on("click", this, () => {
            let height=wxutils.Instance.SystemInfo.statusBarHeight;
            let winheight=wxutils.Instance.SystemInfo.windowHeight;
            this.btn.y = sceneutil.Instance.realHeigt*height/winheight;
        })
    }
}